import re

a = re.search(r'a.*b', 'adskfbfldsfls')
print(a)

# re.compile可应用于一个正则表达式匹配多个字符串
r = re.compile(r'a.*b')  # returning a Pattern object.
b = r.search('adskfbfldsfls')
print(b)
c = r.search('asdadsafbds')
